package com.example.web.validation.annotation;

import com.example.web.validation.DatePageQueryValidator;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Target({PARAMETER})
@Retention(RUNTIME)
@Constraint(validatedBy = DatePageQueryValidator.class)
@Documented
public @interface DatePageQueryCheck {

    //括号里面不能有空格，坑死人啊
    String message() default "{cn.com.chinacloud.paas.DatePageQueryCheck.message}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
